//1、监控粒度？
//2、饼图的时间范围选择？
//3、横向柱状图的X/Y轴？ 
const from = {
    name: "我的图表", // 图表名称
    xField: "time", // 筛选条件, 不关注
    time: ["2021/4/20", "2021/4/25"],
    yField: "", // 监控指标，原型中监控指标与数据连接绑定
    database: "/xxxxx",
    category: [["jk1","tp99","pv"],["jk2", "uv"]] // 监控对象
};
const layout = [
    {
        "x": 0,
        "y": 0,
        "w": 2, 
        "h": 2, 
        "i": "ID",
        config: {
            from
        }
    },
];
const res ={
    code: 200,
    msg: "成功",
    result: 1,
    data: {
        keyMap: [
            { name: "样例1", code: "ABCDEF" },
            { name: "样例2", code: "HIGKLM" },
            { name: "样例3", code: "OPQRST" },
        ],
        fieldMap: {
            name: "名称",
            code:"英文名",
            time: "时间",
            value: "总数",
            value2: "金额",
        },
        ABCDEF:[
            ["样例1", "ABCDEF", "2021/4/20", "@natural(99,9999)", "@natural(99,9999)"],
            ["样例1", "ABCDEF", "2021/4/21", "@natural(99,9999)", "@natural(99,9999)"],
            ["样例1", "ABCDEF", "2021/4/22", "@natural(99,9999)", "@natural(99,9999)"],
        ],
        HIGKLM: [
            ["样例2", "HIGKLM", "2021/4/20", "@natural(99,9999)", "@natural(99,9999)"],
            ["样例2", "HIGKLM", "2021/4/21", "@natural(99,9999)", "@natural(99,9999)"],
            ["样例2", "HIGKLM", "2021/4/22", "@natural(99,9999)", "@natural(99,9999)"],
        ],
        OPQRST: [
            ["样例3", "OPQRST", "2021/4/20", "@natural(99,9999)", "@natural(99,9999)"],
            ["样例3", "OPQRST", "2021/4/21", "@natural(99,9999)", "@natural(99,9999)"],
            ["样例3", "OPQRST", "2021/4/22", "@natural(99,9999)", "@natural(99,9999)"],
        ],
    }
};
const res2 = {
    fieldMap: {
        name: "名称",
        code:"英文名",
        time: "时间",
        value: "pv",
        value2: "uv",
    },
    table:[
        {name:"接口1中的tp99的点击量", code:"jk1-tp99-pv", time:"2021/4/20", value:"@natural(99,9999)", value2:"@natural(99,9999)"},
        {name:"接口2的全部访问量", code:"jk2-uv", time:"2021/4/20", value:"@natural(99,9999)", value2:"@natural(99,9999)"},
    ]
};

const  map = {res, layout, from, res2};
export default map;